<?xml version="1.0" encoding="UTF-8"?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1">
<jsp:text><![CDATA[
<script type="text/javascript">
    function addMovie() {
        document.getElementById("management").todo.value = "addMovie";
        document.getElementById("management").submit();
    }
    function updateMovie() {
        document.getElementById("management").todo.value = "updateMovie";
        document.getElementById("management").submit();
    }
    function deleteMovie() {
        document.getElementById("management").todo.value = "deleteMovie";
        document.getElementById("management").submit();
    }
    function addScheduleItem() {
        document.getElementById("management").todo.value = "addScheduleItem";
        document.getElementById("management").submit();
    }
    function updateScheduleItem() {
        document.getElementById("management").todo.value = "updateScheduleItem";
        document.getElementById("management").submit();
    }
    function deleteScheduleItem() {
        document.getElementById("management").todo.value = "deleteScheduleItem";
        document.getElementById("management").submit();
    }
    function addOfficer() {
        document.getElementById("management").todo.value = "addOfficer";
        document.getElementById("management").submit();
    }
    function deleteOfficer() {
        document.getElementById("management").todo.value = "deleteOfficer";
        document.getElementById("management").submit();
    }

    function authenticateRefund() {
        document.getElementById("management").todo.value = "showPendingRefund";
        document.getElementById("management").submit();
    }

    function viewStatistics() {
        document.getElementById("management").todo.value = "prepareViewStatistics";
        document.getElementById("management").submit();
    }

</script>

<form name="profile" id="management" method="post" action=" ]]></jsp:text><jsp:expression>request.getContextPath()</jsp:expression><jsp:text><![CDATA[/index.do">
    <input type="hidden" name="todo" id="todo" value="" />

    <div>
        <a href="javascript:addMovie();">Add a Movie</a> <br />
        <a href="javascript:updateMovie();">Update a Movie</a> <br />
        <a href="javascript:deleteMovie();">Delete a Movie</a><br />
        <p>&nbsp;</p>
        <a href="javascript:addScheduleItem();">Add a Schedule Item</a> <br />
        <a href="javascript:updateScheduleItem();">Update a Schedule Item</a> <br />
        <a href="javascript:deleteScheduleItem();">Delete a Schedule Item</a><br />
        <p>&nbsp;</p>
        <a href="javascript:addOfficer();">Add an Officer</a> <br />
        <a href="javascript:deleteOfficer();">Delete an officer</a> <br />
        <p>&nbsp;</p>
        <a href="javascript:authenticateRefund();">Authenticate Refund</a> <br />
        <a href="javascript:viewStatistics();">View Statistics</a> <br />
    </div>


</form>]]></jsp:text>

</jsp:root>
